<template>
	<view class="pay-success">
		<image class="pay-success__bg" mode="widthFix" :src="$imgUrl('/order/paysuccess/pay-success.png')"></image>
		<view class="pay-success__text">支付成功</view>
		<view class="pay-success__look" @click="toLookOrder">查看订单</view>
		<view class="pay-success__home" @click="backToHome">返回首页</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			toLookOrder () {
				uni.navigateTo({
					url: '/pages/order/orderList/index'
				})
			},
			backToHome () {
				uni.switchTab({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
.pay-success{
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: center;
	
	.pay-success__bg {
		width: 381rpx;
		height: 264rpx;
	}
	
	.pay-success__text{
		margin-top: 48rpx;
		margin-bottom: 64rpx;
	}
	
	.pay-success__look{
		width: 524rpx;
		height: 80rpx;
		background: #2FCC71;
		border-radius: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 30rpx;
		font-weight: bold;
		color: #FFFFFF;
		margin-bottom: 32rpx;
	}
	
	.pay-success__home{
		width: 524rpx;
		height: 80rpx;
		background: #FFFFFF;
		border: 1px solid #333333;
		border-radius: 40rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #333333;
		font-size: 30rpx;
		font-weight: bold;
	}
}
</style>
